package com.dao;

import com.model.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int deleteByPrimaryKey(Integer bookId);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer bookId);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    List<Book> selectPage(Book book);

    List<Book> selectPage2(@Param("bookName") String bookName,@Param("varies") String varies);


    Book selectByBookName(String bookName);

    int insertUpBook(@Param("upBookId") int upBookId, @Param("variesId")int variesId);
}